<%@ page import="controledespesas.Despesa" %>



<div class="fieldcontain ${hasErrors(bean: despesaInstance, field: 'descricao', 'error')} required">
	<label for="descricao">
		<g:message code="despesa.descricao.label" default="Descricao" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="descricao" required="" value="${despesaInstance?.descricao}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: despesaInstance, field: 'valor', 'error')} required">
	<label for="valor">
		<g:message code="despesa.valor.label" default="Valor" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="valor" step="0.01" min="0.1" required="" value="${fieldValue(bean: despesaInstance, field: 'valor')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: despesaInstance, field: 'data', 'error')} required">
	<label for="data">
		<g:message code="despesa.data.label" default="Data" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="data" precision="day"  value="${despesaInstance?.data}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: despesaInstance, field: 'quantidade', 'error')} required">
	<label for="quantidade">
		<g:message code="despesa.quantidade.label" default="Quantidade" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="quantidade" required="" value="${fieldValue(bean: despesaInstance, field: 'quantidade')}"/>
</div>

